import React, { useState } from 'react'
import { Swiper,Image } from "antd-mobile"

export default function HomeSwiper({ list }: any) {

    return (
        <Swiper autoplay loop className='swiper'>
            {list.map((item: any) => {
                return <Swiper.Item key={item.id}>
                    <div>
                        <Image src={"http://124.93.196.45:10001/"+item.advImg}></Image>
                    </div>
                    </Swiper.Item>
            })}


        </Swiper>
    )
}
